package service

import (
	"qld2devservice/protocol"
)

func StartChargingSpw(userId int64, snNum, orderSn string, amount, balance int64) (timeOutFlag bool, openFlag int64, openMsg string, err error) {
	return protocol.StartChargingSpw("qld2chargespwprotocol:8351", userId, snNum, orderSn, amount, balance)
}
func StopChargingSpw(userId int64, snNum string) (timeOutFlag bool, closeFlag int64, amount int64, electricity float32, duration int64, orderSn, recordAmount, closeMsg string, err error) {
	return protocol.StopChargingSpw("qld2chargespwprotocol:8351", userId, snNum)
}
func ForceChargingSpw(userId int64, snNum string) (timeOutFlag bool, closeFlag int64, amount int64, electricity float32, duration int64, orderSn, recordAmount, closeMsg string, err error) {
	return protocol.ForceChargingSpw("qld2chargespwprotocol:8351", userId, snNum)
}
